package com.ywy.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.PathVariable;

import com.ywy.entity.User;

public interface UsersMapper {
	
	//根据user_id查询User
	public User selectUserById(int user_id);
	
	//用户登录
	public boolean userLogin(@Param("user_name")String user_name,@Param("user_pwd")String user_pwd);

	//显示所有用户信息
	public List<User> selectAllUsers(); 
	
	//注册用户
	public boolean addUser(User user);
	
	//注册时查询是否重名
	public User selectUserByName(String user_name);
}
